﻿@model GioHangViet.Models.Language

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Admin/Views/Shared/_AdministratorLayout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="nonboxy-widget">

    <div class="widget-head">
        <h5>Create</h5>
    </div>

    <div class="widget-content">
        <div class="widget-box">
            @using (Html.BeginForm("Edit", "Language", FormMethod.Post, new { @class = "form-horizontal well" }))
            {
                @Html.ValidationSummary(true)
                <fieldset>

                    @Html.HiddenFor(model => model.Alias)
                    <div class="control-group">
                        <div class="control-label" for="input01">
                            @Html.LabelFor(model => model.Name)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.Name, new { @id = "input01", @class = "input-xlarge text-tip" })
                            @Html.ValidationMessageFor(model => model.Name)
                        </div>
                    </div>

                    <div class="form-actions">
                        <input type="submit" value="Save" class="btn btn-info" />
                    </div>

                </fieldset>
            }
        </div>
    </div>
</div>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
